@extends('layout.admin')
@section('title','用户列表')
@section('content')
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
        <div class="col-md-12" id="content" >
            <div class="app_content_div" id="app_content_div_301Index">
                <h3>用户列表</h3>
            </div>

            <div>
    <div style="float:right;">
        <button type="button" class="btn btn-primary" onclick="window.location.href='/adm/user_create'">新增用户</button>
    </div>
</div>

<table class="table table-striped">
        <thead>
        <tr>
            <th>id</th>
            <th>用户名</th>
            <th>更改密码</th>
            <th>删除<th>
        </tr>
        </thead>
        <tbody>
        @foreach($oUsers as $v)
            <tr>
                <th scope="row">{{$v->id}}</th>
                <td>{{$v->name}}</td>
                <td>
                    <a href="/adm/user_edit/{{$v->id}}"><span class="glyphicon glyphicon-edit" aria-hidden="true"></span></a> &nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    <a href="/adm/user/{{$v->id}}"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
                </td>
            </tr>
        @endforeach
        </tbody>
    </table>
{{$oUsers->links('layout.page')}}
        </div>
    </div>
@endsection
